package com.tsingteng.cosfun.ui.setting.imodel;

import com.tsingteng.cosfun.bean.ProfileAdressBean;
import com.tsingteng.cosfun.callback.RxObserver;
import com.tsingteng.cosfun.http.RxSchedulers;
import com.tsingteng.cosfun.mvp.module.BaseModel;

public class ProFileAdressModel extends BaseModel implements IProfileAdressModel{
    @Override
    public void changeProfileAdress(long id, String userName, String mobilePhone, String region, String address, RxObserver<ProfileAdressBean> callBack) {
          doRxRequest().changeAdress(id,userName,mobilePhone,region,address).compose(RxSchedulers.io_main()).subscribe(callBack);
    }

    @Override
    public void addProfileAdress(String userName, String mobilePhone, String region, String address, RxObserver<ProfileAdressBean> callBack) {
        doRxRequest().addAdress(userName,mobilePhone,region,address).compose(RxSchedulers.io_main()).subscribe(callBack);
    }

    @Override
    public void getProfileAdress(RxObserver<ProfileAdressBean> callBack) {
        doRxRequest().getProfile().compose(RxSchedulers.io_main()).subscribe(callBack);
    }

}
